﻿using Currency.IServices.Shared.Interceptors;
using Currency.IServices.Shared.Models;
using System.Threading.Tasks;
using User.IServices.Dto;

namespace Currency.IServices.User
{
    /// <summary>
    /// IUserInfoServices
    /// </summary>	
    public interface IUserInfoServices
    {
        /// <summary>
        /// 用户注册
        /// </summary>
        /// <param name="userInfo">用户</param>
        /// <returns>主键</returns>
        [OperateLog(LogName = "用户注册")]
        [UnitOfWork(SharedToCap = false)]
        Task<ResultMessage<long>> Create(UserRegisterDto userInfo);
    }
}
